<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/metro.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/font-awesome.css" rel="stylesheet" />
<link href="${ctx}/resources/css/bootstrap/css/style.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_responsive.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light.css" rel="stylesheet">
<link href="${ctx}/resources/css/bootstrap/css/style_light_inline.css" rel="stylesheet"> 
<%-- <link href="${ctx}/resources/css/zui/zui.min.css" rel="stylesheet" />
<link href="${ctx}/resources/css/zui/zui-theme.min.css" rel="stylesheet" />--%>
<style type="text/css">
@media ( max-width : 767px) {
	[class*="span"],.uneditable-input[class*="span"],.row-fluid [class*="span"]
		{
		width: 49%;
		float: left;
		margin-right: 7px;
	}
}
</style>
<title>欢迎</title>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
		${error }
		<form action="${ctx }/bank/list.jhtml" method="get">
<!-- 			<div class="span3">银行名称：<input type="text" name="bankName" /></div>
			<div class="span3">银行帐号：<input type="text" name="bankCode"  /></div>
			<div class="span3">账户类型：<input type="text" name="bankType"  /></div>
 -->			<div class="col-md-2">
 				<div class="input-group">
 				<span class="input-group-addon">组织机构：</span>
 				
				<select class="form-control" name="organId">
					<c:forEach var="organ" items="${organ }">
						<option value="${organ.id }" <c:if test="${organ.id eq oid }">selected</c:if>>${organ.name }</option>
					</c:forEach>
				</select>
				</div></div>
				<div class="col-md-3">
				<input type="submit" value="查询" class="btn blue" />
				<a href="${ctx }/bank/create.jhtml" class="btn red">新增</a>
				<a href="${ctx }/bank/export.jhtml" class="btn green" >导出</a> 
			</div>
		</form>
		</div>
		<br>
		<div class="row-fluid">
			<table class="table" id="excel">
				<thead>
					<tr>
						<td>ID</td>
						<td>银行名称</td>
						<td>账户类型</td>
						<td>银行帐号</td>
						<td>账户余额</td>
						<td>备注</td>
					</tr>
				</thead>
				<tbody>
				<c:forEach items="${banks }" var="bank">
					<tr>
						<td><a href="${ctx }/bank/getbank.jhtml?id=${bank.id}">${bank.id }</a></td>
						<td><a href="${ctx }/bank/getbank.jhtml?id=${bank.id}">${bank.bankName }</a></td>
						<td>${bank.bankType }</td>
						<td>${bank.bankCode }</td>
						<td>${bank.bankBalance }</td>
						<td>${bank.bankRemarks }</td>
					</tr>
				</c:forEach>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="4" style="text-align:right;color:blue;font-weight:bold;">合计：</td>
						<td colspan="2" style="font-weight: bold;">${sum }</td>
					</tr>
				</tfoot>
			</table>
		</div>

	</div>
</body>
<script type="text/javascript" src="${ctx }/resources/js/jquery.js"></script>
<%--<script type="text/javascript">
	var forword = function(obj) {
		if (obj == 1) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='applyArticle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 2) {
			var $a = $(window.parent.document).find(
					".page-sidebar > ul > li > ul > li > a[href$='exp']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 3) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='managetSubject']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		} else if (obj == 4) {
			var $a = $(window.parent.document)
					.find(
							".page-sidebar > ul > li > ul > li > a[href$='articleRecycle']");
			$a.get(0).click();
			var str = $a.parent().parent().parent().find("a").find("span")
					.text();
			text(str);
		}
	}
	var text = function(obj) {
		$(window.parent.document).find(".page-sidebar > ul > li").removeClass(
				'active');
		$(window.parent.document).find(
				".page-sidebar > ul > li > a > span[class='title']").each(
				function(i) {
					var text = $(this).text();
					if (text == obj) {
						$(this).parent().parent().addClass('open active');
						$(this).after('<span class="selected"></span>')
					}
				});
	}
</script> --%>
</html>